package main

import (
	"net/http"

	"gitee.com/h2ob/base"
	"github.com/gin-gonic/gin"
	"github.com/gobwas/ws"
)

type wsCaller struct {
}

type wsWorkerPool struct {
}

func wsHandler(c *gin.Context) {
	_, _, _, err := ws.UpgradeHTTP(c.Request, c.Writer)
	if err != nil {
		base.GLogger.Infof("UpgradeHTTP failed:%s", err)
		c.Status(http.StatusInternalServerError)
		c.Abort()
		return
	}
}

func startWs(router *gin.Engine) {

}
